Unicode Mapping Versions
When performing conversions, you specify the version of the Unicode mapping table to be used for the conversion. You provide the version number in the mapping version field of the structureUnicodeMapping
(page 118) that is passed to a function. A Unicode mapping version is defined by theUnicodeMapVersion
data type.
typedefSInt32UnicodeMapVersion;Instead of explicitly specifying the mapping version of the Unicode mapping table to be used for conversion of a text string, you can specify that the latest version be used. The following enumeration defines the use-latest-mapping constant:
enum { kUnicodeUseLatestMapping = -1 };Only one constant is defined so far for a specific mapping version—the mapping version used by HFS Plus to convert filenames between MacOS encodings and Unicode. In the future constants may be defined for other specific mapping versions.
enum { kUnicodeUseHFSPlusMapping = 4 };